//
//  InvestmentCell.m
//  CBT
//
//  Created by Mr.Zhang on 2019/3/4.
//  Copyright © 2019 Mr.Zhang. All rights reserved.
//

#import "MyInvestmentCell.h"

@interface MyInvestmentCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@property (weak, nonatomic) IBOutlet UILabel *daysLabel;
@property (weak, nonatomic) IBOutlet UIImageView *rightIconImageView;

@end

@implementation MyInvestmentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(InvestDetailsItemModel *)model {
    
    [self.iconImageView lf_setImageURL:[NSString stringWithFormat:@"%@/%@",kBaseURL_PICSTATIC,model.coinPic]];
    self.nameLabel.text   = model.coinSymbol;
    self.numberLabel.text = model.investAmount;
    self.rightIconImageView.image = [UIImage imageNamed:[model.investAmount doubleValue] > 0 ? @"youtouzi" : @"meitouzi"];
    
    self.daysLabel.text = @"";
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
